package com.example.infrastructure.api.organization.vo;

import com.example.infrastructure.domain.organization.aggregate.Organization;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * {@link Organization} 复杂查询条件
 * <br/>
 * 支持模糊查询，区间查询，分组查询
 */
@Data
public class Condition {
    private String fieldName;

    @NotEmpty(message = "操作符不能为空")
    private String operator;

    private String value;

    private Condition preCondition;
    private Condition postCondition;
}
